import { useEffect } from "react";
import routes from "../routes";
import VideoCard from "./videoCard";
import {RouterProvider, useNavigate} from "react-router-dom";

const ZBody = () => {
  //const nav = useNavigate();
  useEffect(()=>{
      //nav("/")
      console.log("path")
  },[])
    return(
        <div className="z-body">
          <div className="z-menu">
              <div>
                <div className="z-text">首页</div>
                <div className="z-text">你正在追</div>
              </div>
              <div>
                <div className="z-text">频道</div>
                <div>
                  <div className="z-text">电视剧</div>
                  <div className="z-text">电影</div>
                  <div className="z-text">综艺</div>
                  <div className="z-text">动漫</div>
                  <div className='z-text'>啊啊</div>
                </div>
              </div>
          </div>
          <div className="z-content z-text">
            <RouterProvider router={routes}/>
          </div>
        </div>
    )
}
export default ZBody;
